package com.more.spring.boot.springbootredisdemo.deepseek.controller;

import com.more.spring.boot.springbootredisdemo.deepseek.service.DeepSeekClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
public class DeepSeekController {

    @Autowired
    private DeepSeekClient deepSeekClient;

    @GetMapping("/deepseek")
    public String callDeepSeek(@RequestParam String promt) {
        return deepSeekClient.callDeepSeekApi(promt);
    }
}